//
//  URLDefine.h
//  TodayComment
//
//  Created by 张吉阳 on 15/9/12.
//  Copyright (c) 2015年 xianrenmoshi. All rights reserved.
//

/*
 *IP地址：
 *家：192.168.1.102
 *公：172.16.20.174
 */

//// 0正式版，1测试版
//#define ProductType 1
//
//// 正式版自动使用正式环境
//#ifdef OFFICIAL
//#undef ProductType
//#define ProductType 0
//#endif
//
//
//#if ProductType == 0
//#define BaseHost    @"http://www.maiziedu.com"
//#define BasePort    @""
//#else
#define BaseHost    @"http://c.m.163.com/nc/"
#define BasePort    @""
//#endif
//http://c.m.163.com/nc/topicset/ios/v4/subscribe/news/all.html
//http://c.m.163.com/nc/article/list/T1348648756099/0-20.html
//http://comment.api.163.com/api/json/post/list/new/hot/news_guonei8_bbs/%@/0/10/10/2/2"
//http://c.m.163.com/nc/article/%@/full.html
#define BaseServer  BaseHost BasePort
#define BaseURLPath "topicset/"
#define BaseURL     BaseServer BaseURLPath
#define BaseServer2 @"http://c.m.163.com/nc/article/"
//@"http://comment.api.163.com/api/json/post/list/new/hot/3g_bbs/%@/0/10/10/2/2"
#define BaseServer3 @"http://comment.api.163.com/api/json/post/list/new/hot/"
#define LoginURL    BaseURL "login.json"
#define AdvertURL   BaseURL"/advert.json?width=%ld&height=%ld"
#define ColumnURL   BaseURL "ios/v4/subscribe/news/all.html"
#define NewsURLFmt  BaseServer2 "list/%@/0-20.html"
#define NextNewsURLFmt  BaseServer2 "list/%@/%lu-20.html"
#define DetailURLFmt BaseServer2  "%@/full.html"
#define CommentURLFmt BaseServer3 "%@/%@/0/10/10/2/2"
#define CommentURLFmtAnimal BaseServer3 "%@/%@/0/1/10/2/2"
#define NextCommentURLFmt BaseServer3 "%@/%@/%lu/10/10/2/2"
#define CommentURLFmt2 BaseServer3 "3g_bbs/%@/0/10/10/2/2"
#define NextCommentURLFmt2 BaseServer3 "3g_bbs/%@/%lu/10/10/2/2"
#define ChartURL    BaseURL "chart.json"
#define H5URL       BaseURL "H5/content.html"

#define CityCodeURLFmt  @"http://apistore.baidu.com/microservice/cityinfo?cityname=%@"

// k78 URL
#define WeatherFmt      @"&format=json"
#define WeatherKey      @"10003"
#define WeatherSign     @"b59bc3ef6191eb9f747dd4e83c99f2a4"
#define WeatherHost     @"http://api.k780.com:88/"
#define WeatherRealFmt  WeatherHost "?app=weather.today&weaid=%@&appkey=" WeatherKey "&sign=" WeatherSign WeatherFmt
